package com.example.treemap.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.event.dom.client.KeyUpEvent;
import com.google.gwt.event.dom.client.KeyUpHandler;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Treemap implements EntryPoint {
	
	public void onModuleLoad() {
		
		Node[] n1 = new Node[30];
		DrawSplitTreemap_Panel p1 = new DrawSplitTreemap_Panel();
		
		n1[0] = new Node(11, "Test1");
		n1[1] = new Node(21, "Test2");
		n1[2] = new Node(41, "Test3");
		n1[3] = new Node(11, "Test4");
		n1[4] = new Node(51, "Test5");
		n1[5] = new Node(111, "Test6");
		n1[6] = new Node(31, "Test7");
		n1[7] = new Node(151, "Test8");
		n1[8] = new Node(121, "Test9");
		n1[9] = new Node(131, "Test10");
		n1[10] = new Node(141, "Test11");
		n1[11] = new Node(111, "Test12");
		n1[12] = new Node(171, "Test13");
		n1[13] = new Node(181, "Test14");
		n1[14] = new Node(411, "Test15");
		n1[15] = new Node(811, "Test16");
		
		p1.DrawSplitTreemap(n1, 16, 5, 5, 1200, 500);
	}
}